<template>
  <div>
    <div v-for="(item,index) in newRouters[0].children" :key="index">
    <router-link :to="item.path">{{item.name}}</router-link>
    </div>
    <router-view></router-view>
  </div>
</template>

<script>
 import {mapState} from "vuex";
  export default {
      name:"home",
      computed:{
         ...mapState(['newRouters'])
      }
  }
</script>

<style scoped>

</style>
